/**
 * An icon can be used to customize the look of a marker on a map.
 * 
 * @author Kim Pommert
 * @version %I%, %G%
 */
qx.Class.define("qooxdoosample.cocktail.util.Icon",
{
	extend: qx.core.Object,
	
	/**
	 * Class constructor.
	 * Instantiates an object of that class.
	 * 
	 * @param image	{String} The path to the image file of the icon
	 */
	construct: function(image)
	{
		this.setImage(image);
		this.setWidth(50);
		this.setHeight(50);
	},
	
	properties :
	{
    	/**
    	 * The path to the image file that defines the look of the icon.
    	 */
    	image:
    	{
      		nullable: true,
      		init: null,
      		check: "String"
      	},
      	
      	/**
      	 * The width of the icon.
      	 */
      	width:
      	{
      		nullable: false,
      		init: 50,
      		check: "Integer"
      	},
      	
      	/**
      	 * The height of the icon.
      	 */
      	height:
      	{
      		nullable: false,
      		init: 50,
      		check: "Integer"
      	}
	}
});